<template>
  <div class="right-click-menu-item-wrap" @click="$emit('click')">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'CommonMenuItem',
  data() {
    return {}
  }
}
</script>

<style scoped lang="scss">
.right-click-menu-item-wrap {
  height: 24px;
  line-height: 24px;
  margin-bottom: 4px;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 12px;

  &:last-child {
    margin-bottom: 0;
  }

  &:hover {
    background-color: #f5f7fa;
  }
}
</style>
